package com.project.bean;

import java.time.LocalDate;

/**
 * 房间实体类
 */
public class RoomBean {
    /*房间编号*/
    private Integer id;
    /*房间地址*/
    private String address;
    /*房间价格*/
    private Integer price;
    /*修建日期*/
    private LocalDate buildDate;

    public RoomBean() {
    }

    public RoomBean( String address, Integer price, LocalDate buildDate) {
        this.address = address;
        this.price = price;
        this.buildDate = buildDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public LocalDate getBuildDate() {
        return buildDate;
    }

    public void setBuildDate(LocalDate buildDate) {
        this.buildDate = buildDate;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", buildDate=" + buildDate +
                '}'+'\n';
    }
}
